<template>
  <div>
    <div class="tab border-1px">
      <router-link class="tab-item" to="/goods" tag="div">
        商品
      </router-link>
      <router-link class="tab-item" to="/ratings" tag="div">
        评论
      </router-link>
      <router-link class="tab-item" to="/sellers" tag="div">
        商家
      </router-link>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Tab'
}
</script>

<style lang="stylus" scoped>
@import '../../assets/styles/maxin.styl'
  .tab
    display flex
    width 100%
    height .8rem
    line-height .8rem
    border-1px(rgba(7,17,27,0.1))
    .tab-item
      flex 1
      text-align center
      font-size .28rem
      color rgb(77,85,93)
    .active
      color rgb(240,20,20)
</style>
